﻿using Ndns.ServerHost.Abstractions;
using System.Net;

namespace Ndns.Net
{
    public interface IDnsServer
    {
        DnsProtocol Protocol { get; }

        EndPoint LocalEndPoint { get; }

        DnsServerState State { get; }

        object Tag { get; set; }

        IDnsRequestHandler Handler { get; }

        void SetHandler(IDnsRequestHandler handler);

        void Start();

        void Stop();
    }
}
